package com.wind.taobao.api.trade.taobaoke.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.taobaoke.report.get Request
	 * @author fxy
	 *
	 */
	public class TaobaokeReportGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.taobaoke.report.get"
		}
		/**
		 * Y 	 需返回的字段列表.可选值:TaobaokeReportMember淘宝客报表成员结构体中的所有字段;字段之间用","分隔.
		 */
		[Bindable]
		public var fields:String="app_key,outer_code,trade_id,pay_time,pay_price,auction_id,auction_title,auction_number,category_id,category_name,shop_title,discount,taoke_amount";
		/**
		 * Y 	需要查询报表的日期，有效的日期为最近3个月内的某一天，格式为:yyyyMMdd,如20090520.
		 */
		[Bindable]
		public var date:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([fields, date]))
			{
				throw new InvalidRequestParametersException("请求参数[fields, date]不能为空");
			}

		}
	}
}